import configparser
import os

Base_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

class ReadIni():

    def __init__(self):
        self.config =configparser.ConfigParser()

    def read_ini(self, section, option):
        self.config.read(os.path.join(Base_DIR, "path.ini"), encoding='utf-8')
        return self.config.get(section, option)


def get_read_obj():
    return ReadIni()